package com.tigercel.xiangchengyun.ui.activities

import android.os.Bundle
import android.os.Handler
import android.support.v7.app.AppCompatActivity
import com.tigercel.xiangchengyun.R
import com.tigercel.xiangchengyun.utils.PreferencesUtil
import me.leefeng.promptlibrary.PromptDialog

class LogoutActivity : AppCompatActivity() {


    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_test)
        var progressDailog = PromptDialog(this)
        progressDailog.showLoading("退出中,请稍后...")
        Handler().postDelayed(Runnable {
            val pre = PreferencesUtil(this)
            pre.clearAllDatas()
            progressDailog.dismiss()
            this.finish()
        }, 1000)
    }
}
